package com.lemon.library.utils;

import android.util.Base64;
import android.util.Log;

import java.io.UnsupportedEncodingException;

public class Base64Utils{

    /**
     * 解密
     * encodeWord：加密后的文字/比如密码
     */
    public static String setDecrypt(String encodeWord){

        String decodeWord = "";
        try {
             decodeWord  = new String(Base64.decode(encodeWord, Base64.NO_WRAP), "utf-8");
            Log.i("Hqq", "decode wrods = " + decodeWord);
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }

        return decodeWord;

    }


}
